import { ExclamationCircleOutlined } from '@ant-design/icons'
import { Modal } from 'antd'
import React from 'react'

function ModalWarn({ open, onOk, onCancel }) {
  return (
    <Modal title="系统提示" open={open} onOk={onOk} onCancel={onCancel}>
      <p style={{ display: 'flex', alignItems: 'center', padding: '15px 0' }}>
        <ExclamationCircleOutlined
          style={{ color: '#F40', fontSize: 22, marginRight: 10 }}
        />
        <span>
          亲，这是演示版，你没有权限!想获得所有权限，请联系咨询老师，获取代码
        </span>
      </p>
    </Modal>
  )
}

export default ModalWarn
